package com.jl.card.file;

import com.jl.card.SWException;

public interface IFileAccess {

	/**
	 * select the file
	 * 
	 * @return
	 * @throws SWException
	 */
	public IFileInfo select() throws SWException;

	public byte[] readBinary(int offset, int length) throws SWException;

	public void updateBinary(int offset, byte[] data, int dataOffset,
			int dataLength) throws SWException;

	public byte[] readRecord(int recNo) throws SWException;

	public void updateRecord(int recNo, byte[] data, int dataOffset)
			throws SWException;

	public byte[] read(int offset, int length) throws SWException;

	public void write(int offset, byte[] data, int dataOffset, int dataLength)
			throws SWException;

}
